TierPricingTable\Addons\GlobalTieredPricing\GlobalPricingRule B

Total Complexity 88
Dependencies 4
Dependents 11
Total lines 607
Lines of code 273
Logical lines of code 126
Comment lines 224
Methods 44
Properties 15

Methods 44

Method Rating Maintainability Complexity Lines of code
_matchRequirements()
A
48 14 32
fromArray()
A
50 13 25
validatePricing()
S
62 6 10
save()
S
53 3 21
build()
S
47 2 34
readPricingRules()
S
66 3 7
setDiscount()
S
70 3 6
asArray()
S
55 1 19
setPricingType()
S
77 2 3
setMinimum()
S
78 2 3
setSalePrice()
S
78 2 3
setRegularPrice()
S
78 2 3
isValidPricing()
S
68 2 8
setTieredPricingType()
S
77 2 3
setApplyingType()
S
77 2 3
getPricingType()
S
82 1 3
matchRequirements()
S
67 1 9
isSuspended()
S
82 1 3
reactivate()
S
81 1 3
suspend()
S
81 1 3
setIsSuspended()
S
80 1 3
setId()
S
81 1 3
getDiscount()
S
82 1 3
getTieredPricingType()
S
82 1 3
setIncludedUsers()
S
81 1 3
getIncludedUsers()
S
82 1 3
setIncludedUsersRole()
S
81 1 3
getIncludedUserRoles()
S
82 1 3
getIncludedProducts()
S
82 1 3
setIncludedProducts()
S
81 1 3
setIncludedProductCategories()
S
81 1 3
getIncludedProductCategories()
S
82 1 3
getRuleId()
S
82 1 3
getPercentageTieredPricingRules()
S
82 1 3
getMinimum()
S
82 1 3
getId()
S
82 1 3
setPercentageTieredPricingRules()
S
81 1 3
getFixedTieredPricingRules()
S
82 1 3
setFixedTieredPricingRules()
S
81 1 3
getSalePrice()
S
82 1 3
getApplyingType()
S
82 1 3
getRegularPrice()
S
82 1 3
getTieredPricingRules()
S
81 1 3
isPurchasable()
S
82 1 3